package spring.framework.beans.factory.config;

import spring.framework.beans.BeansException;

/**
 * @author fun.pengzh
 * @class spring.framework.beans.factory.config.InstantiationAwareBeanPostProcessor
 * @desc
 * @since 2021-11-21
 */
public interface InstantiationAwareBeanPostProcessor extends BeanPostProcessor {

    /**
     * 在 Bean 对象执行初始化方法之前，执行此方法
     *
     * @param beanClass
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object postProcessBeforeInstantiation(Class<?> beanClass, String beanName) throws BeansException;


}
